uninstall_keyhook

This function uninstalls a low level keyboard hook previously installed with the install_keyhook function.

bool uninstall_keyhook()

Parameters:
None.

Return value:
true if the keyboard hook was successfully uninstalled, false otherwise.

Remarks:
The program will automatically uninstall a keyhook on exit.

Example:
// Install a keyhook and display a message saying that the Insert key has been pressed.

void main()
{
show_game_window("Test Game");
install_keyhook();
while(true)
{
if(key_down(KEY_LMENU) && key_pressed(KEY_F4))
{
exit();
}
if(key_pressed(KEY_INSERT))
{
alert("Information", "The Insert key was successfully pressed.");
}
// Other code goes here.
wait(5);
}
uninstall_keyhook();
}